package com.ruoyi.shop.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.shop.domain.FzShop;
import com.ruoyi.shop.mapper.FzShopMapper;
import com.ruoyi.shop.service.IFzShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.common.core.text.Convert;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-03-09
 */
@Service
public class FzShopServiceImpl implements IFzShopService
{
    @Autowired
    private FzShopMapper fzShopMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param shopId 【请填写功能名称】ID
     * @return 【请填写功能名称】
     */
    @Override
    public FzShop selectFzShopById(String shopId)
    {
        return fzShopMapper.selectFzShopById(shopId);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param fzShop 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<FzShop> selectFzShopList(FzShop fzShop)
    {
        return fzShopMapper.selectFzShopList(fzShop);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param fzShop 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertFzShop(FzShop fzShop)
    {
        fzShop.setCreateTime(DateUtils.getNowDate());
        return fzShopMapper.insertFzShop(fzShop);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param fzShop 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateFzShop(FzShop fzShop)
    {
        fzShop.setUpdateTime(DateUtils.getNowDate());
        return fzShopMapper.updateFzShop(fzShop);
    }

    /**
     * 删除【请填写功能名称】对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteFzShopByIds(String ids)
    {
        return fzShopMapper.deleteFzShopByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param shopId 【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteFzShopById(String shopId)
    {
        return fzShopMapper.deleteFzShopById(shopId);
    }
}
